package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.ProjectClass;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProjectClassRepository extends JpaRepository<ProjectClass,String> {
    Integer countByProjectIdAndClassIdAndDeleteFlag(String projectId,Long classId,Integer deleteFlag);
    List<ProjectClass> findByProjectId(String projectId);
    List<ProjectClass> findByProjectIdAndDeleteFlag(String projectId,Integer deleteFlag);
    Integer countByProjectIdAndCreatedByAndDeleteFlag(String projectId,Long createdBy,Integer deleteFlag);
    ProjectClass findByIdAndDeleteFlag(String id,Integer deleteFlag);
}
